package com.tsugun.mediaplayer.view.fragment.subfragment;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.tsugun.mediaplayer.R;
import com.tsugun.mediaplayer.presenter.provider.ListProvider;
import com.tsugun.mediaplayer.view.activity.BaseActivity;

/**
 * create an instance of this fragment.
 */
public class SimilarListFragment extends SubBaseFragment {

    private View mFragment;
    private Context mContext;

    private ListProvider mProvider;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        mFragment = inflater.inflate(R.layout.fragment_similar, container, false);
        mContext = container.getContext();
        initView();
        initData();
        bindData();
        return mFragment;
    }

    /**
     * 初始化控件
     */
    private void initView() {

    }

    /**
     * 初始化数据
     */
    private void initData() {

    }

    /**
     * 绑定数据
     */
    private void bindData() {

    }

    /**
     * 添加结果集合
     *
     * @param provider provider
     */
    public void setListProvider(ListProvider provider) {
        mProvider = provider;
    }

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
    }

    @Override
    public void onResume() {
        super.onResume();
        ((BaseActivity)getActivity()).onSettingChanged();
    }

    @Override
    public void onDetach() {
        super.onDetach();
    }
}
